export default {
  validateRichText(params) {
    if (params.richText) {
      params.richText = encodeURIComponent(params.richText);
    }

    return window._UIDesingerAxios({
      method: 'post',
      url: '/quality/api/api/v1/richTextCheck',
      data: params,
    });
  },
  validateDDEText(params) {
    return window._UIDesingerAxios({
      method: 'post',
      url: '/quality/api/api/v1/ddeTextCheck',
      data: params,
    });
  },
};
